home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / yelp / xslt / yelp-common.xsl < prev   
Encoding:
Extensible Markup Language  |  2007-04-10  |  3.0 KB  |  94 lines

  1. <?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3.                 xmlns="http://www.w3.org/1999/xhtml"
  4.                 version="1.0">
  5.  
  6. <xsl:param name="yelp.color.fg"/>
  7. <xsl:param name="yelp.color.bg"/>
  8. <xsl:param name="yelp.color.anchor"/>
  9. <xsl:param name="yelp.color.rule"/>
  10. <xsl:param name="yelp.color.gray.fg"/>
  11. <xsl:param name="yelp.color.gray.bg"/>
  12. <xsl:param name="yelp.color.gray.bg.dark1"/>
  13. <xsl:param name="yelp.color.gray.bg.dark2"/>
  14. <xsl:param name="yelp.color.gray.bg.dark3"/>
  15. <xsl:param name="yelp.color.selected.fg"/>
  16. <xsl:param name="yelp.color.selected.bg"/>
  17. <xsl:param name="yelp.color.selected.bg.dark1"/>
  18. <xsl:param name="yelp.color.selected.bg.dark2"/>
  19. <xsl:param name="yelp.color.selected.bg.dark3"/>
  20. <xsl:param name="yelp.color.admon.fg"/>
  21. <xsl:param name="yelp.color.admon.bg"/>
  22. <xsl:param name="yelp.color.admon.bg.dark1"/>
  23. <xsl:param name="yelp.color.admon.bg.dark2"/>
  24. <xsl:param name="yelp.color.admon.bg.dark3"/>
  25.  
  26. <!-- == yelp.common.css == -->
  27. <xsl:template name="yelp.common.css">
  28.   <xsl:text>
  29.     html {
  30.       height: 100%;
  31.     }
  32.     body {
  33.       -moz-box-sizing: border-box;
  34.       position: relative;
  35.       min-height: 100%;
  36.       margin: 0px;
  37.     }
  38.     div[class~="body"] {
  39.       -moz-box-sizing: border-box;
  40.       position: relative;
  41.       margin-top: 0px;
  42.       padding: 12px;
  43.       padding-bottom: 3em;
  44.     }
  45.  
  46.     h1 { font-size: 1.4em; }
  47.     h2 { font-size: 1.2em; }
  48.     h1 + div h2[class~="title"] { margin-top: 2em; }
  49.     h1, h2, h3, h4, h5, h6, h7 { color: </xsl:text>
  50.     <xsl:value-of select="$yelp.color.selected.bg.dark1"/><xsl:text>; }
  51.     h3 span[class~="title"] { border-bottom: none; }
  52.     h4 span[class~="title"] { border-bottom: none; }
  53.     h5 span[class~="title"] { border-bottom: none; }
  54.     h6 span[class~="title"] { border-bottom: none; }
  55.     h7 span[class~="title"] { border-bottom: none; }
  56.  
  57.     /* Gecko seems to get selection color wrong on some themes */
  58.     ::-moz-selection {
  59.       background-color:  </xsl:text>
  60.       <xsl:value-of select="$yelp.color.selected.bg"/><xsl:text>;
  61.       color: </xsl:text>
  62.       <xsl:value-of select="$yelp.color.selected.fg"/><xsl:text>;
  63.     }
  64.  
  65.     div[class~="linktrail"] {
  66.       -moz-box-sizing: border-box;
  67.       font-size: 0.8em;
  68.       white-space: nowrap;
  69.       margin: 0px;
  70.       padding: 3px;
  71.       padding-left: 12px;
  72.       padding-right: 12px;
  73.       background-color: </xsl:text>
  74.       <xsl:value-of select="$yelp.color.gray.bg"/><xsl:text>;
  75.       border: none;
  76.       border: solid 1px </xsl:text>
  77.       <xsl:value-of select="$yelp.color.gray.bg.dark1"/><xsl:text>;
  78.     }
  79.     span[class~="linktrail"]:after {
  80.       content: ' / ';
  81.       color: </xsl:text>
  82.       <xsl:value-of select="$yelp.color.gray.fg"/><xsl:text>;
  83.     }
  84.  
  85.     a { color:  </xsl:text>
  86.       <xsl:value-of select="$yelp.color.selected.bg.dark1"/><xsl:text>; }
  87.     
  88.     a[class~="linktrail"] { text-decoration: none; }
  89.     a[class~="linktrail"]:hover { text-decoration: underline; }
  90.   </xsl:text>
  91. </xsl:template>
  92.  
  93. </xsl:stylesheet>
  94.